import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import './index.css';
import 'antd/dist/reset.css';
import App from './App.tsx';
import { Provider } from 'react-redux';
import { RouterProvider } from "react-router-dom"
// 尝试不同的路径格式来解决模块找不到的问题，假设 store 模块文件扩展名为 .ts
import {persistor,store} from './zhang/store/index.tsx';
// 尝试不同的路径格式来解决模块找不到的问题，若项目使用了 ESLint 或 TypeScript 配置，可检查路径别名
import { PersistGate } from 'redux-persist/es/integration/react';
createRoot(document.getElementById('root')!).render(
  <StrictMode>
   
     <Provider store={store}>
    <PersistGate persistor={persistor}>   <BrowserRouter>
      <App />
    </BrowserRouter></PersistGate>
   
    </Provider>
  </StrictMode>
);
